<?php

class ctype{
	
	var $id;
	var $type;
	var $options;
	var $optionDisplays;
	
	function __construct($id, $type){
		$this->id = $id;
		$this->type = $type;
		$this->options = array();
		$this->optionDisplays = array();
	}
	
	function get_optionDisplay($value){
		for($i=0; $i<sizeof($this->options); $i++){
			if($this->options[$i] == $value){
				return $this->optionDisplays[$i];
			}
		}
		return "";
	}
	
	function add_option($value, $display){
		array_push($this->options, $value);
		array_push($this->optionDisplays, $display);
	}
	
	function get_id(){
		return $this->id;
	}
	
	function get_type(){
		return $this->type;
	}
	
	function get_options(){
		return $this->options;
	}
	
	function get_optionDisplays(){
		return $this->optionDisplays;
	}
	
	function set_id($id){
		$this->id = $id;
	}
	
	function set_type($type){
		$this->type = $type;
	}
	
	function set_options($options){
		$this->options = $options;
	}
	
	function set_optionDisplays($optionDisplays){
		$this->optionDisplays = $optionDisplays;
	}
	
}

?>